<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<script src="js/react.js"></script>
<script src="js/react-dom.js"></script>
<script src="js/browser.min.js"></script>
<div id="eg"></div>
<script type="text/babel">
let Component=React.createClass({
render:function(){
return(
<p {...this.props}>{this.props.children}</p>
);
},
});
ReactDOM.render(
<Component id="myId" style={{color:'red'}}>TEST</Component>,
document.getElementById("eg")
);
</script>
</body>
</html>